//
//  Dog.h
//  P103
//
//  Created by 闫潇 on 14-10-13.
//  Copyright (c) 2014年 yan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Dog : NSObject
{
@protected
    int ID;
@public
    int age;
@private
    int price;
}
-(id)init;
-(id)initWithID:(int)newID;


-(id)initWithID:(int)newID andAge:(int)newAge;
//分别带两个
-(id)initWithID:(int)newID andAge:(int)newAge andPrice:(float)newPrice;
//分别带三个参数，都是int

-(void)setID:(int)newID;
-(int)getID;

-(void)setAge:(int)newAge;
-(int)getAge;

-(void)setPrice:(float)newPrice;
-(float)getPrice;


-(void)setID:(int)newID andAge:(int)newAge;

-(void)setID:(int)newID andAge:(int)newAge andPrice:(float)newPrice;

@end
